import http from '@/utils/http/axios';

export function quartzList(params) {
  return http.request({
    url: '/sys/quartz/',
    method: 'get',
    params,
  });
}
export function saveQuartz(data) {
  return http.request({
    url: '/sys/quartz/',
    method: 'post',
    data,
  });
}
export function updateQuartz(data) {
  return http.request({
    url: '/sys/quartz/',
    method: 'put',
    data,
  });
}
export function deleteQuartz(params) {
  return http.request({
    url: '/sys/quartz/',
    method: 'delete',
    params,
  });
}
export function pauseJob(id) {
  return http.request({
    url: `/sys/quartz/pauseJob/${id}`,
    method: 'post',
  });
}
export function startJob(id) {
  return http.request({
    url: `/sys/quartz/startJob/${id}`,
    method: 'post',
  });
}
